package com.lbj.core.app

import androidx.lifecycle.MutableLiveData
import com.lbj.core.adapter.SuperItem
import com.lbj.core.tool.data.SuperResult
import com.lbj.mvvm.base.JetpackVM
import com.lbj.mvvm.work.Work

/**
 * 作者：李炳军
 * 创建日期：2021-03-29  14:20
 * 释义：
 */
open class CoreVM : JetpackVM() {
    var page = 1
    var count = 0
    val map by lazy { HashMap<String, Any>() }
    val mSuperList by lazy { arrayListOf<SuperItem>() }

    fun <T> getWork() = MutableLiveData<Work<T>>()
    fun <T> getWorkList() = MutableLiveData<Work<List<T>>>()
    fun <T> getSuperWork() = MutableLiveData<Work<SuperResult<T>>>()
}